package ssm.mapper;

import ssm.pojo.User;
import ssm.pojo.UserCustom;
import ssm.pojo.UserQueryVo;

import java.util.List;

/**
 * 
 * <p>Title: UserMapper</p>
 * <p>Description: mapper接口，相当 于dao接口，用户管理</p>
 * <p>Company: www.itcast.com</p> 
 * @author	传智.燕青
 * @date	2015-4-22下午2:45:12
 * @version 1.0
 */
public interface UserMapper {
	
	//用户信息综合查询
	public  List<UserCustom> findUserList(UserQueryVo userQueryVo)throws Exception;


	//用户信息综合总数查询
	public  int findUserCount(UserQueryVo userQueryVo)throws Exception;

	//根据id查询用户信息
	public User findUserById(int id) throws Exception;

	//根据id查询用户信息，使用resultMap
	public User findUserByIdResultMap(int id) throws Exception;

	//根据用户名列查询用户列表
	public List<User> findUserByName(String name) throws Exception;

	//添加用户信息
	public void insertUser(User user) throws Exception;

	//删除用户信息
	public void deleteUser(int id) throws Exception;

	//更新用户
	public void updateUser(User user)throws Exception;
		

}
